home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm4_2_7
- Caption = "Using Form_Load"
- ClientHeight = 1515
- ClientLeft = 1110
- ClientTop = 1485
- ClientWidth = 4710
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1515
- ScaleWidth = 4710
- Begin VB.PictureBox picArea
- Height = 375
- Left = 120
- ScaleHeight = 315
- ScaleWidth = 4395
- TabIndex = 1
- Top = 240
- Width = 4455
- End
- Begin VB.CommandButton cmdCompute
- Caption = "Compute Area"
- Height = 495
- Left = 720
- TabIndex = 0
- Top = 840
- Width = 2775
- End
- Attribute VB_Name = "frm4_2_7"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim pi As Single
- Private Sub Form_Load()
- 'Assign a value to pi
- pi = 3.14159
- End Sub
- Private Sub cmdCompute_Click()
- 'Display the area a circle of radius 5
- picArea.Cls
- picArea.Print "The area of a circle of radius 5 is"; pi * 5 * 5
- End Sub
-